package ooday04;

public class Fish extends Animal implements Swim {
    public Fish() {
    }

    public Fish(String name, int age, String color) {
        super(name, age, color);
    }

    public void eat() {
        System.out.println(age + "岁的" + color + "的小鱼" + name + "在吃鱼粮……");
    }
    public void swim(){
        System.out.println(name+"会游泳");
    }
}
